home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
batch
/
library
/
stackey3
/
seecolor.bat
< prev
next >
Wrap
DOS Batch File
|
1990-03-24
|
699b
|
38 lines
echo off
cls
stackey {cu=-}
stackey /u/
stackey /i/ ;turn off smart processing to prevent stray keypresses
: from causing havoc
if %1a == a goto error
echo
:top
cls
if %1 == 7 stackey [7=0]
stackey [0=%1]>nul
if errorlevel 1 goto error
echo This is color number %1
pause
if %1 == 7 stackey [7=7]
shift
if %1a == a goto end
goto top
:end
echo
stackey []
cls
goto finish
:error
echo:
echo:
echo Oops! The input parameter is not correct.
echo The input parameter should be a number from 0 to 63 or a RrBbGg string
echo:
pause
echo
stackey []
:finish
stackey {cu=+}
stackey /o/ ; remember to restore users options